package org.jeecg.modules.demo.zc.idleCar.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.zc.idleCar.entity.IdleCar;

import java.util.List;

@Mapper
public interface IdleCarMapper extends BaseMapper<IdleCar> {

    @Select("select ORG_ID from ORG_INFO where ORG_CODE=#{orgCode}")
    Integer getOrgId(String orgCode);

    @Select("select ORG_ID from ORG_INFO where PARENT_ORG_ID=#{orgId}")
    List<Integer> getparentOrgIds(Integer orgId);
}
